package com.zenith.zongheng.demo.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zenith.zongheng.demo.domain.entity.LeaveProcess;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zenith.zongheng.demo.domain.dto.LeaveProcessDTO;
import com.zenith.zongheng.demo.domain.vo.LeaveProcessVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tangzx
 * @since 2021-12-28
 */
@Mapper
public interface LeaveProcessMapper extends BaseMapper<LeaveProcess> {

    /**
     *  通过LeaveProcessDTO的任意一个字段
     *  得到所有对应的LeaveProcessVO的值
     * @param page 分页对象
     * @param dto  条件参数对象
     * @return     分页对象
     */
    IPage<LeaveProcessVO> selectPage(IPage<LeaveProcessVO> page, @Param("dto") LeaveProcessDTO dto);
}
